﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AppConfig {

    /// <summary>
    /// 是否开启热更新
    /// </summary>
    public readonly static bool IS_HOT_UPDATE = false;

    /// <summary>
    /// 版本名字
    /// </summary>
    public readonly static string VERSION_NAME = "version.txt";

    public readonly static string UPDATE_INFO = "update.txt";

    /// <summary>
    /// 服务器lua资源地址
    /// </summary>
    public readonly static string LUA_RES_SERVICE = "http://192.168.1.111:8080/Res/Lua/";

    /// <summary>
    /// 服务器lua资源版本信息
    /// </summary>
    public readonly static string LUA_RES_SERVICE_VERSION = "http://192.168.1.111:8080/Res/Lua_version.txt";

    /// <summary>
    /// 本地lua资源地址
    /// </summary>
    public readonly static string LUA_RES_LOCAL = Application.persistentDataPath + "/Res/Lua";

    /// <summary>
    /// 本地Lua版本信息
    /// </summary>
    public readonly static string LUA_RES_LOCAL_VERSION = Application.persistentDataPath + "/Res/Lua_version.txt";

    /// <summary>
    /// 服务器AB资源地址
    /// </summary>
    public readonly static string AB_RES_SERVICE = "http://192.168.1.111:8080/Res/" + ApplicationPlatform.GetRunPlatform() + "/";

    /// <summary>
    /// 服务器AB版本信息
    /// </summary>
    public readonly static string AB_RES_SERVICE_VERSION = "http://192.168.1.111:8080/Res/" + "AB_" + ApplicationPlatform.GetRunPlatform() + "_version.txt";

    /// <summary>
    /// 本地AB资源地址
    /// </summary>
    public readonly static string AB_RES_LOCAL = Application.persistentDataPath + "/Res/" + ApplicationPlatform.GetRunPlatform() + "/";

    /// <summary>
    /// 本地AB版本信息
    /// </summary>
    public readonly static string AB_RES_LOCAL_VERSION = Application.persistentDataPath + "/Res/" + "AB_" + ApplicationPlatform.GetRunPlatform() + "_version.txt";

    public readonly static string IP = "127.0.0.1";

    public readonly static string PORT = "7878";

    public readonly static string STREAM_RES = "";

    /// <summary>
    /// 资源压缩包密码
    /// </summary>
    public readonly static string ZIP_PASSWORD = "123456";

    /// <summary>
    /// lua加密密钥
    /// </summary>
    public readonly static string LUA_KEY = "123456";

    /// <summary>
    /// AB加密密钥
    /// </summary>
    public readonly static string AB_KEY = "123456";




    /// <summary>
    /// 服务器版本号信息
    /// </summary>
    public readonly static string SERVICE_VERSION_NO = "http://192.168.1.111:8080/Res/" + "/Res/" + ApplicationPlatform.GetRunPlatform() + "/version.txt";

    /// <summary>
    /// 服务器版本资源详细信息
    /// </summary>
    public readonly static string SERVICE_VERSION_INFO = "http://192.168.1.111:8080/Res/" + "/Res/" + ApplicationPlatform.GetRunPlatform() + "/version_info.txt";

    /// <summary>
    /// 本地版本号信息
    /// </summary>
    public readonly static string LOCA_VERSION_NO = Application.persistentDataPath + "/Res/" +  ApplicationPlatform.GetRunPlatform() + "/version.txt";

    /// <summary>
    /// 本地版本资源详细信息
    /// </summary>
    public readonly static string LOCAL_VERSION_INFO = Application.persistentDataPath + "/" + ApplicationPlatform.GetRunPlatform() + "/"  + VERSION_NAME;

    public readonly static string SERVER_RES_ADDRESS = "http://192.168.1.111:8080/Res/" + ApplicationPlatform.GetRunPlatform() + "/";


    /// <summary>
    /// 初始版本文件信息
    /// </summary>
    public readonly static string ORIGINAL_VERSION_INFO = Application.streamingAssetsPath + "/" + ApplicationPlatform.GetRunPlatform() + "/" + VERSION_NAME;

    /// <summary>
    /// 初始ab信息
    /// </summary>
    public readonly static string ORIGINAL_ASSETBUNDLEMANIFEST_INFO = Application.streamingAssetsPath + "/" + ApplicationPlatform.GetRunPlatform() + "/" + ApplicationPlatform.GetRunPlatform() + ".manifest";

    /// <summary>
    /// 本地ab信息
    /// </summary>
    public readonly static string LOCAL_ASSETBUNDLEMANIFEST_INFO = Application.persistentDataPath + "/" + ApplicationPlatform.GetRunPlatform() + "/" + ApplicationPlatform.GetRunPlatform() + ".manifest";

    /// <summary>
    /// 沙河路径目录
    /// </summary>
    public readonly static string LOCAL_RES_DIR = Application.persistentDataPath + "/" + ApplicationPlatform.GetRunPlatform();

    /// <summary>
    /// 更新信息
    /// </summary>
    public readonly static string LOACAL_UPDATE_INFO = Application.persistentDataPath + "/" + ApplicationPlatform.GetRunPlatform() + "/" + UPDATE_INFO;
}
